Prompts
Dynamic Prompts
Dynamic prompts are also supported. Place your prompts in the /base/classes/config/mcp/prompt directory. They will be automatically made available as MCP prompts.
Example
{
"name": "Joke",
"title": "Joke",
"description": "Tell a joke",
"resultDescription": "The joke about a given topic",
"needsAuthentication": false,
"arguments": [
{
"name": "topic",
"title": "topic",
"description": "What is the joke about?",
"required": true
}
],
"prompt": "Tell be a joke about {topic}"
}
needsAuthentication: false → The prompt is also available without authentication.
A prompt can additionally contain arguments, which are used to dynamically construct the prompt. For this purpose, a list of arguments can be specified, each of which must have a name. This name must be unique.
To use an argument within the prompt, it can be written in curly braces {} and will automatically be replaced with the value provided by the user.